/***************************************************************************
 *   Copyright (C) 2007 by Ziman & Xloverin                                *
 *   ziman@centrum.sk, xloverin@gmail.com                                  *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef PREFSLOG_H
#define PREFSLOG_H

#include <QWidget>
#include "ui_prefslog.h"

class PrefsLog : public QWidget, private Ui::prefsLog
{
		Q_OBJECT

	public:
		enum Format {Plaintext = 1, Vt100 = 2, PlainHtml = 4, Html = 8};

		struct Prefs {
			int format;
			QString fileName;
			QString timestamp;
			bool timestampEnabled;
			int fnFormatSelected;
		};

		PrefsLog ( QWidget* parent = 0, Qt::WFlags fl = 0 );
		virtual ~PrefsLog();

		Prefs prefs();
		void setPrefs(Prefs prefs);

	public slots:

	protected:

	protected slots:
		void on_cbPlainHtml_toggled(bool checked);
		void on_cbHtml_toggled(bool checked);

		void on_rbSingle_clicked();
		void on_rbQuery_clicked();
		void on_rbSingleMonth_clicked();
		void on_rbQueryMonth_clicked();

		void on_leFileName_textChanged();
		void on_leTimestamp_textChanged();
};

#endif

